package demo01;

public class DiGui {
	public static void main(String[] args){
		int sum =getsum(100);
		System.out.println(sum);
	}
	
	public static int getsum(int i){
		if(i==1){
			return 1;
			
		}
		return i+getsum(i-1);
	}
}
